//
//  tuiJianCollectionCell.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/1/27.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "tuiJianCollectionCell.h"

@implementation tuiJianCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.name_lab.font = AutoLabFont2;
}

-(void)setModel:(CurriculumListModel *)model{
    _model = model;
    [_top_img sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.courseIcon]] placeholderImage:DefaultIcon];
    _name_lab.text = [NSString stringWithFormat:@"作品名称:%@",model.courseName];
    _keMu_lab.text = [NSString stringWithFormat:@"课程所属科目:%@",model.categoryName];
    _longTime_lab.text = [NSString stringWithFormat:@"课程时长:%@",model.courseTime];
    if ([model.coursePayType intValue] == 1) {
        _type_lab.text = [NSString stringWithFormat:@"课程学科名称:付费"];
    }else{
        _type_lab.text = [NSString stringWithFormat:@"课程学科名称:免费"];
    }
    _like_lab.text = [NSString stringWithFormat:@"%@",model.coursePraise];
    _look_lab.text = [NSString stringWithFormat:@"%@",model.courseLook];

}

@end
